﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace KCurveAPI
{
  public class DataSource : ConfigurationSection
  {
    [ConfigurationProperty("main_server", DefaultValue = @".\", IsRequired = true)]
    public string main_server
    {
      get { return (string)this["main_server"]; }
      set { this["main_server"] = value; }
    }

    [ConfigurationProperty("main_port", DefaultValue = @".\", IsRequired = true)]
    public string main_port
    {
      get { return (string)this["main_port"]; }
      set { this["main_port"] = value; }
    }

    [ConfigurationProperty("backup_server", DefaultValue = @".\", IsRequired = true)]
    public string backup_server
    {
      get { return (string)this["backup_server"]; }
      set { this["backup_server"] = value; }
    }

    [ConfigurationProperty("backup_port", DefaultValue = 7001, IsRequired = true)]
    public int backup_port
    {
      get { return (int)this["backup_port"]; }
      set { this["backup_port"] = value; }
    }
  }
}
